<%@ page import="com.esurvey.core.*" %>
<html>
    <head>
    </head>
    <body>
    <%
    if (request.getParameter("name")!=null && request.getParameter("email")!=null && request.getParameter("msg")!=null) {
        String msg = "De: " + request.getParameter("name") + "\nemail: " + request.getParameter("email") + "\nAsunto: \n" +request.getParameter("msg");
        SMTP.send("contact.esurvey@gmail.com","Petición de contacto",msg);
    }
    String url = session.getAttribute("lasturl")+"";
    response.sendRedirect(url);
    %>
    </body>
</html>
